home *** CD-ROM | disk | FTP | other *** search
- {\rtf0\ansi{\fonttbl\f0\fmodern Courier;\f1\ftech Symbol;\f2\fmodern Ohlfs;}
- \margl40
- \margr40
- \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 //—————————————————————————————————————————————————————————————————————————————\
- //
- \i
- \b FILENAME
- \b0 :
- \b\i0 eText.NeXTHack.h \
-
- \b0 //
- \i
- \b SUMMARY
- \b0 :
- \b\i0 Interface for various private Text methods
- \b0 \
- //
- \b\i CATEGORY
- \b0 :
- \i0
- \b NeXTHack
- \b0 ,
- \b Mole
- \b0 ,
- \b ClipView(undocumented)
- \b0 \
- //
- \b\i PROTOCOLS
- \b0 :
- \i0
- \b None
- \b0 \
- //
- \b\i INTERFACE
- \b0 :
- \i0
- \b None
- \b0 \
- //
- \b\i AUTHOR
- \b0 :
- \b\i0 Rohit Khare
- \b0 \
- //
- \b\i COPYRIGHT
- \b0 :
- \f1\i0 ½
- \f0\b 1993,94 California Institure of Technology, eText Project\
-
- \b0 //—————————————————————————————————————————————————————————————————————————————\
- //
- \b\i Description
- \b0\i0 \
- // Text was written by a truly misguided genius. That was in 0.9. The\
- // code that's been added since 1991, though, seems to require the assistance\
- // of illegal substance. Someone at NeXT should give me a call about Text\
- // for Mecca. 818/792-9114, anytime.
- \b\i Really
- \b0\i0 .\
- //—————————————————————————————————————————————————————————————————————————————\
- //
- \b\i History
- \b0\i0 \
- // 11/21/94:
- \b Added runForPosition:.
- \b0 \
- // 10/17/94:
- \b Cleaned up for eText5.
- \b0 \
- // 08/05/94:
- \b Completely Rearchitected for 5.0. RK
- \b0 \
- //—————————————————————————————————————————————————————————————————————————————\
- //
- \b Imported Interfaces
- \b0 \
- //\
- #import "
- \b eText.Class.h
- \b0 "\
- \
- #define
- \b NXRTFDPboardType
- \b0 NXUniqueString("
- \b NeXT RTFD pasteboard type
- \b0 ")\
- //—————————————————————————————————————————————————————————————————————————————\
- //
- \b Text Stream Hacks
- \b0\i Courtesy of Mike Dixon's XText Package
- \i0 \
- //\
- extern char
- \b getPrevious
- \b0 (
- \b NXStream
- \b0 *s);\
- /*
- \i NXBGetc - a text stream macro to get the previous character
- \i0 . */\
-
- \b #define
- \b0
- \b NXBGetc
- \b0 (s) \\\
- (((s)->buf_base == (s)->buf_ptr) ?
- \b getPrevious
- \b0 (s) : \\\
- *(--((s)->buf_ptr)) )\
- /*
- \i line is from an NXSelPt; returns the length of the line.\
- too bad this requires grunging in Text's data structures
- \i0 */\
-
- \b #define
- \b0
- \b LINE_LENGTH
- \b0 (
- \b line
- \b0 ) \\\
- (self->
- \b theBreaks
- \b0 ->
- \b breaks
- \b0 [(line)/sizeof(
- \b NXLineDesc
- \b0 )] &
- \b 0x3fff
- \b0 )\
- \
-
- \i @interface Text(NeXTHack)\
-
- \i0 //—————————————————————————————————————————————————————————————————————————————\
- //
- \b Proprietary
- \b0 \
- //\
- -
- \b addOneFile
- \b0 :(char *) fname
- \b sender
- \b0 :app;\
- -
- \b setRTFD
- \b0 :(
- \b BOOL
- \b0 )b;\
- - (
- \b BOOL
- \b0 )
- \b isRTFD
- \b0 ;\
- + (
- \b Class
- \b0 )
- \b graphicCellClass
- \b0 ; //
- \i returns NXGraphicCell
- \i0 \
- +
- \b classForDirective
- \b0 :(char*)theDir;\
- + (const char*)
- \b directiveForClass
- \b0 ;\
- -
- \b printOneRun
- \b0 :a
- \b end
- \b0 :b
- \b into
- \b0 :c
- \b fonts
- \b0 :d
- \b colors
- \b0 :e
- \b run
- \b0 :(
- \b NXRun
- \b0 *)f
- \b runPos
- \b0 :g
- \b buf
- \b0 :h
- \b state
- \b0 :i;\
- \
-
- \i @end
- \i0 \
- \
-
- \i @interface eText(Mole)\
-
- \i0 //—————————————————————————————————————————————————————————————————————————————\
- //
- \b Convenience
- \b0 \
- //\
- - (
- \b NXRunArray
- \b0 *)
- \b theRuns
- \b0 ;\
- - (
- \b NXRun *
- \b0 )
- \b runForPosition
- \b0 :(int)pos;\
- \
- //—————————————————————————————————————————————————————————————————————————————\
- //
- \b Delegation
- \b0 \
- //\
- -
- \b textDidGetKeys
- \b0 :sender
- \b isEmpty
- \b0 :(
- \b BOOL
- \b0 )flag;\
- -
- \b textWillConvert
- \b0 :sender
- \b fromFont
- \b0 :from
- \b toFont
- \b0 :to;\
- -
- \b textDidRead
- \b0 :sender
- \b paperSize
- \b0 :(
- \b NXSize
- \b0 *)paperSize;\
- \
-
- \i @end
- \i0 \
- \
-
- \i @interface ClipView(undocumented)\
-
- \i0 //—————————————————————————————————————————————————————————————————————————————\
- //
- \b Scrolling (XText)
- \b0 \
- //\
- -
- \b _scrollTo
- \b0 :(
- \b NXPoint
- \b0 *)origin;\
-
- \i \
- @end
- }
-